<template>
    <div style="background-color:cornflowerblue">
        <h1>{{msg}}</h1>
    </div>
</template>

<script>
export default {
  setup(){
    //promise对象中存放需要进行异步操作的代码
    return new Promise((resolve)=>{
      setTimeout(() => {
        resolve({
          msg:"hello,让你久等了！"
        })
      }, 3000);
    })
  }
}
</script>